/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.app.ad.service.dto;

import lombok.Data;
import java.sql.Timestamp;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

/**
* @website https://el-admin.vip
* @description /
* @author Haojie Li
* @date 2021-03-01
**/
@Data
public class AdInfoDto implements Serializable {

    /** 数据唯一标识 */
    private String id;
    
    /**
     * 默认展示的广告
     */
    private String isDefault;

    /** 广告名称 */
    private String adTitle;

    /** 广告资源地址 */
    private String adResourceUrl;

    /** 广告资源类型 */
    private String adResourceType;

    /** 广告显示时长（以秒为单位） */
    private String adDisplayTime;

    /** 创建者 */
    private String createBy;

    /** 更新者 */
    private String updateBy;

    /** 创建时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /** 更新时间 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /** 数据状态 */
    private Integer isEnable;
}